//
//  AddChaseHeader.m
//  PlayerWorld
//
//  Created by 汪的一声就哭了！ on 16/8/19.
//  Copyright © 2016年 刘成. All rights reserved.
//

#import "AddChaseHeader.h"
#import "LZFoldButton.h"
@implementation AddChaseHeader
{
    UIView *_backView;
    UIView *_whiteBackView;
    UILabel *_nameLabel;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = YES;
        self.imageView = [[UIImageView alloc] init];
        [self addSubview:self.imageView];
        self.imageView.image = [UIImage imageNamed:@"追号1"];
        self.imageView.userInteractionEnabled = YES;
        
        self.label1 = [[UILabel alloc] init];
        [self addSubview:self.label1];
        self.label1.text = @"同利润追号";
        self.label1.textAlignment = NSTextAlignmentCenter;
        self.label1.font = [UIFont systemFontOfSize:15];
        self.label1.userInteractionEnabled = YES;
        
        self.label2 = [[UILabel alloc] init];
        [self addSubview:self.label2];
        self.label2.text = @"同倍追号";
        self.label2.textAlignment = NSTextAlignmentCenter;
        self.label2.font = [UIFont systemFontOfSize:15];
        self.label2.userInteractionEnabled = YES;
        
        self.label3 = [[UILabel alloc] init];
        [self addSubview:self.label3];
        self.label3.text = @"翻倍追号";
        self.label3.textAlignment = NSTextAlignmentCenter;
        self.label3.font = [UIFont systemFontOfSize:15];
        self.label3.userInteractionEnabled = YES;
        
        self.label1.textColor = [UIColor whiteColor];
        self.label2.textColor = [UIColor colorWithRed:57.0/255.0 green:57.0/255.0 blue:57.0/255.0 alpha:1];
        self.label3.textColor = [UIColor colorWithRed:57.0/255.0 green:57.0/255.0 blue:57.0/255.0 alpha:1];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.label1.frame = CGRectMake(0, 0, self.bounds.size.width/3, 40);
    self.label2.frame = CGRectMake(self.bounds.size.width/3, 0, self.bounds.size.width/3, 40);
    self.label3.frame = CGRectMake(self.bounds.size.width*2/3, 0, self.bounds.size.width/3, 40);
    self.imageView.frame = CGRectMake(15, 0, self.bounds.size.width/3-30, 40);
//    self.lzBtn.frame = CGRectMake(100, 0, self.bounds.size.width-120, 43);
}
@end
